package com.ruoyi.hqfinance.service.impl;

import com.ruoyi.hqfinance.domain.HqBusinessType;
import com.ruoyi.hqfinance.mapper.HqBusinessTypeMapper;
import com.ruoyi.hqfinance.service.HqBusinessTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HqBusinessTypeServiceImpl implements HqBusinessTypeService {
    @Autowired
    private HqBusinessTypeMapper hqBusinessTypeMapper;
    @Override
    public List<HqBusinessType> selectAll() {
        return hqBusinessTypeMapper.selectAll();
    }

    @Override
    public Boolean insert(HqBusinessType hqBusinessType) {
        return hqBusinessTypeMapper.insert(hqBusinessType);
    }

    @Override
    public Boolean update(HqBusinessType hqBusinessType) {
        return hqBusinessTypeMapper.update(hqBusinessType);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return hqBusinessTypeMapper.deleteById(id);
    }
}
